﻿@using System.Data;
@using ZoomLa.BLL.Helper
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Model.cols = 5;
    Model.url = "Content_Data";
}
<div id="EGV">
    <table class="table table-bordered table-striped">
        <tr><td class="td_s"></td><td class="td_s">ID</td><td>标题</td><td class="td_m">状态</td><td class="td_l">操作</td></tr>
        @foreach (DataRow dr in Model.dt.Rows)
        {
            <tr>
                <td><input type="checkbox" name="idchk" value="@dr["GeneralID"]" /></td>
                <td>@dr["GeneralID"]</td>
                <td><a href="AddContent?ID=@dr["GeneralID"]">@dr["Title"]</a></td>
                <td>@ZoomLa.BLL.B_Content.GetStatusStr(Convert.ToInt32(dr["Status"]))</td>
                <td>
                    <a href="ShowContent?ID=@dr["GeneralID"]" class="option_style" title="后台预览"><i class="fa fa-eye"></i></a>
                    <a href="AddContent?ID=@dr["GeneralID"]" class="option_style" title="修改"><i class="fa fa-pencil"></i></a>
                    <a href="/Item/@dr["GeneralID"]" class="option_style" target="_blank"><i class="fa fa-globe"></i>预览</a>
                    <a href="javascript:;" class="option_style" onclick="mvcpage.del({ ids: '@dr["GeneralID"]', url: 'content_del', confirm: '确定要删除吗' });" title="删除"><i class="fa fa-trash"></i></a>
                </td>
            </tr>
        }
        @Html.Partial("_page", Model)
    </table>
</div>